function loadChildMenu(_this, url, panel) {
    // $(_this).parent().children().removeClass('active');
    // $(_this).addClass('active');
    if (url != '#') {
        url=LC.MASTER_URI+url;
        LC.goPage(url, panel);
    }
}
$(document).ready(function (e) {
    var menus = $('.head .menu li');
    for(var i=0;i<menus.length;i++){
        var parentId = menus.eq(i).attr('parentId');
        if(parentId!=''){
            if($('.head .menu [mid='+parentId+']>ul').length==0){
                $('.head .menu [mid='+parentId+']').append('<ul class="dropdown-menu"></ul>');
            }
            menus.eq(i).addClass('ropdown-submenu');
            $('.head .menu [mid='+parentId+']>ul').append(menus.eq(i));
        }
    }

    $('.main').css({
        paddingBottom: $('.footpanel').outerHeight() + 'px'
    });
    $(".login").dialog({
        autoOpen: false,
        bgiframe: true,
        dialogClass: 'login_close',
        closeOnEscape: false,
        hide: 'slide(100)',
        // height: 250,
        // width: 400,
        modal: true,
        open: function (event, ui) {
            login.reset();
        },
        //position:["center","center"],
        title: "登录",
        show: 'slide(1000)',
        resizable: false
    });
    $('.login').keyup(function (e) {
        if (e.keyCode == 13) {
            login.submit();
        }
    });
    login.url = login.url;
    login.captchaUrl = login.captchaUrl
    login.successCallback = function (rs) {
        $('.login').dialog('close');
        login.reset();
    }
});